<?php
    header("content-type:text/html,charset=utf8");
    $a=mysql_connect("localhost","root","root");
    if(!$a){
        die("lllllllllll");
    }
   mysql_select_db("user",$a);
   $b=mysql_query('SELECT * FROM  `va`');
   if(!$b){
       die("worrong");
   }
   $c=mysql_fetch_assoc($b);
// echo $b;
   echo json_encode($c);

   mysql_close($a);

?>